package com.bwie.service;

import com.bwie.bean.Brand;
import com.bwie.bean.Goods;
import com.bwie.dao.MyDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class MyServiceImpl implements MyService{
    @Resource
    MyDao myDao;

    @Override
    public List list(Map map) {
        return myDao.list(map);
    }

    @Override
    public int add(Goods goods) {
        return myDao.add(goods);
    }

    @Override
    public int del(String sid) {
        return myDao.del(sid);
    }

    @Override
    public int update(Goods goods) {
        return myDao.update(goods);
    }

    @Override
    public Map hx(Integer sid) {
        return myDao.hx(sid);
    }

    @Override
    public List<Brand> brandList() {
        return myDao.brandList();
    }
}
